package com.hina.rec.endpoint.req.system;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 用户角色授权请求
 *
 * @author liaosp
 * @date 2024-01-10
 */
@Data
@Schema(description = "用户角色授权请求")
public class GrantRolesReq {

    /**
     * 用户ID
     */
    @Schema(description = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    /**
     * 角色ID列表
     */
    @Schema(description = "角色ID列表", required = true)
    @NotEmpty(message = "角色ID列表不能为空")
    private List<Integer> roleIds;
}